@media (min-width: 1200px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
  .headerText h1,
  .ph-hero-title,
  .ph-hero__title {
    font-size: 48px;
  }
}

/* Desktop / laptop (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  .nav ul li {
    padding-left: 24px;
  }
  .ph-hero-wrapper {
    padding: 40px;
  }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  /* Header / nav adjustments */
  .nav ul {
    display: none !important;
  }
  .menu-toggle {
    display: block !important;
  }
  .btnleft {
    margin-left: 0 !important;
  }

  /* Hero adjustments */
  .ph-hero-wrapper {
    padding: 28px;
  }
  .ph-hero-content,
  .ph-hero__inner {
    max-width: 100%;
  }
  .ph-hero-title,
  .ph-hero__title {
    font-size: 36px !important;
  }
  .headerText h1 {
    font-size: 36px !important;
  }

  /* Grid adjustments */
  .sp-grid,
  .blog-grid {
    grid-template-columns: 1fr !important;
  }
  .workText h3 {
    font-size: 18px;
  }

  /* Footer stacking */
  footer .row > div {
    width: 50%;
  }
}

/* Small tablets and large phones (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
  .container {
    max-width: 540px;
  }
  .nav ul {
    display: none !important;
  }
  .menu-toggle {
    display: block !important;
  }
  .btnleft {
    display: none !important;
  }

  .ph-hero-wrapper {
    padding: 20px;
  }
  .ph-hero-title,
  .ph-hero__title {
    font-size: 32px !important;
  }
  .ph-hero-text,
  .ph-hero__subtitle {
    font-size: 16px !important;
  }

  .featured-image {
    height: 260px;
  }
  .card-img {
    height: 200px;
  }

  /* Works grid two columns -> single column */
  .OurWorksSection .row > .col-6 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 770px) {
  .headerText {
    max-width: 97%;
    padding-right: 20px;
  }

  .cta-section {
    padding: 30px 0;
}

  .contact-item {
    display: block;
}

.contact-icon {
    display: block;
    margin-bottom: 13px;
}

  .contact-form {
    width: 100%;
}

  .col-4 {
    width: 100%;
  }

  .testimonialsSwiper {
    padding: 0 50px;
  }

  .testimonials-header p {
    max-width: 90%;
  }

  .about-hero-details {
    display: block;
  }

  .about-cards {
    grid-template-columns: repeat(1, 1fr);
  }

  .about-card {
    display: block;
    text-align: center;
  }

  .titleHowWork {
    display: block;
  }

  .titleHowWork p {
    max-width: 100%;
  }

  .ph-hero-content {
    margin-bottom: 30px;
    max-width: 100%;
  }

  .Workportfolio-header p {
    max-width: 100%;
  }

  .Blog-hero {
    padding: 110px 0;
  }

  .ot-card {
    width: 50%;
    margin-bottom: 20px;
  }
}

/* Mobile (<=575px) - base mobile rules */
@media (max-width: 575px) {
  .container {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  h1 {
    font-size:1.8em !important;
  }

   h2 {
    font-size: 1.2em !important;
  }

   h3 {
    font-size: 1.1em !important;
  }

   h4 {
    font-size:1.3em !important;
  }

   h5 {
    font-size:1.3em !important;
  }

   h6 {
    font-size:1.3em !important;
  }

   a {
    font-size:0.9em !important;
  }

   span {
    font-size:0.9em !important;
  }

   p {
    font-size:0.9em !important;
  }
  
  #menu {
    display: none !important;
  }
  .menu-toggle {
    display: block !important;
  }
  .btnleft {
    display: none !important;
  }

  .ot-card {
    width: 100%;
    margin-bottom: 20px;
  }

  .sp-card {
    display: block;
  }

  /* Hero */
  .ph-hero {
    padding: 60px 0 30px;
  }
  .ph-hero-wrapper {
    padding: 18px;
  }
  .ph-hero-title,
  .ph-hero__title {
    font-size: 26px !important;
  }
  .ph-hero-text,
  .ph-hero__subtitle {
    font-size: 14px !important;
  }

  /* Make tabs horizontally scrollable and comfy */
  .nav-tabs {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    white-space: nowrap;
  }
  .nav-tabs .nav-link {
    display: inline-block;
  }

  /* Blog and project cards */
  .blog-grid,
  .sp-grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }
  .featured-image {
    height: 220px;
  }
  .card-img {
    height: 160px;
  }

  /* Works list -> single column */
  .OurWorksSection .row > .col-6 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Footer becomes stacked */
  footer .row {
    /* display: block; */
    padding: 0px 20px;
  }
  footer .row > div {
    /* width: 100%; */
    margin-bottom: 20px;
  }

  /* Side menu improved for small screens */
  .side-menu {
    width: 80% !important;
    right: -100% !important;
  }
  .side-menu.open {
    right: 0 !important;
  }

  /* Reduce icon sizes in stats */
  .ph-stat-icon {
    width: 40px;
    height: 40px;
  }
  .ph-stat-value {
    font-size: 22px;
  }
}

/* Target very small phones: <= 500px and <= 375px (fine-grained tweaks) */
@media (max-width: 500px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .section-header-services p {
    max-width: 80%;
    text-align: center;
    margin: 0 auto;
}

.section-header-services {
    margin-bottom: 22px;
}

.ph-hero__inner {
    padding: 10px 20px;
}

.sp-list li {
    text-align: center;
}

  .section-header-services span {
    justify-content: center;
}

h2,h1,h3,h4,h5,h6,p,a,span {
    text-align: center !important;
    justify-content: center !important;
}

.btnheader {
    display: block;
}

.btnheader a {
  margin-bottom: 15px;
}

.headerDetails {
    padding: 70px 0;
}

.sliderBrand {
  padding: 20px 0;
}

.sliderWorks {
    padding-top: 0;
}

.Workportfolio {
    padding-bottom: 20px;
}

.services-section {
    padding: 15px 0;
}

.testimonials {
    padding-top: 0;
}

.sliderBrand:before {
    display: none;
}

.sliderBrand:after {
    display: none;
}

.copyright {
    margin-top: 0;
    padding-top: 11px;
}

  .service-item {
    text-align: center;
    min-height: auto;
  }

  .payment-methods {
    justify-content: center;
  }

  .copyright p {
      text-align: center;
  }

  footer .col-3 {
    width: 48%;
    flex: 0 0 auto !important;
    display: flex !important;
  }


  .about-hero-cta-btn {
    display: block;
    text-align: center;
    width: 160px;
    margin: 0 auto;
}

.blogs-section {
    padding: 20px 0 10px;
}
  

  /* Header / nav compact */
  .nav ul {
    display: none !important;
  }
  .menu-toggle {
    display: block !important;
  }
  .btnleft {
    display: none !important;
  }
  .nav ul li {
    padding-left: 12px;
  }
  .navlogoheder .logo img {
    max-width: 120px;
    height: auto;
  }

  /* Login section: stack and reduce sizes */
  .loginSection {
    flex-direction: column;
    min-height: auto;
  }
  .formlogin {
    order: 2;
    padding: 18px;
  }
  .imgloginleft {
    order: 1;
    height: 160px;
  }
  .imgloginleft img {
    object-position: center right;
  }
  .login-container {
    max-width: 100%;
    padding: 22px;
    border-radius: 14px;
  }
  .login-container h2 {
    font-size: 28px;
  }
  .form-group label {
    font-size: 14px;
  }
  .form-group input {
    font-size: 14px;
    padding: 10px 14px;
  }
  .login-btn {
    font-size: 16px;
    padding: 12px;
  }

  /* Reduce hero text and other headings */
  .ph-hero-title,
  .ph-hero__title {
    font-size: 24px !important;
  }

  /* footer/side-menu full width for very small screens */
  .side-menu {
    width: 65% !important;
    right: -100% !important;
  }
  .side-menu.open {
    right: 0 !important;
  }
}

@media (max-width: 370px) {
  /* Extra small phones tweaks */
  .login-container h2 {
    font-size: 24px;
  }
  .login-container {
    padding: 16px;
  }
  .form-group input {
    font-size: 13px;
    padding: 9px 12px;
  }
  .ph-hero-title,
  .ph-hero__title {
    font-size: 20px !important;
  }
  .navlogoheder .logo img {
    max-width: 100px;
  }

      footer .row {
        display: block;
        padding: 0px 20px;
    }

        footer .row > div {
        width: 100%;
        margin-bottom: 20px;
    }
}


/* Responsive Styles */
@media (max-width: 991px) {
  .loginSection {
    flex-direction: column;
  }
  
  .formlogin {
    order: 2;
    padding: 20px;
  }
  
  .imgloginleft {
    order: 1;
    height: 200px;
  }
  
  .login-container {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .login-container {
    padding: 30px 20px;
  }
  
  .forgot-password {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .form-group input {
    padding: 10px 15px;
  }
  
  .login-btn {
    padding: 12px;
  }
}